basix_doc 0.1
generic_concrete_rep< C > Class Template Reference

#include <generic.hpp>

Inheritance diagram for generic_concrete_rep< C >:
generic_rep rep_struct

List of all members.

Public Member Functions

Public Attributes

Protected Member Functions

Friends


Detailed Description

template<typename C>
class mmx::generic_concrete_rep< C >

Definition at line 485 of file generic.hpp.


Constructor & Destructor Documentation

generic_concrete_rep ( const C rep2) [inline]

Definition at line 537 of file generic.hpp.

: rep (rep2) {}

Member Function Documentation

routine* acc_apply ( nat  code) const [inline, protected, virtual]

Reimplemented from generic_rep.

Definition at line 530 of file generic.hpp.

References mmx::apply().

                                             {
    if (code < Acc::nr_apply)
      return (routine*) (void*)
        (((routine_rep**) (void*) Acc::apply) + code);
    else return NULL; }
routine* acc_construct ( nat  id) const [inline, protected, virtual]

Reimplemented from generic_rep.

Definition at line 525 of file generic.hpp.

References mmx::construct().

                                               {
    if (id < Acc::nr_construct)
      return (routine*) (void*)
        (((routine_rep**) (void*) Acc::construct) + id);
    else return NULL; }
nat acc_id ( ) const [inline, protected, virtual]

Reimplemented from generic_rep.

Definition at line 523 of file generic.hpp.

                             {
    return Acc::id; }
generic binary_disassemble ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 512 of file generic.hpp.

References mmx::binary_disassemble().

generic binary_type ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 510 of file generic.hpp.

References void_binary_helper< C >::full_type_name().

                               {
    return binary_helper<C>::full_type_name (); }
void binary_write ( const port out) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 514 of file generic.hpp.

References mmx::binary_write(), and mmx::write().

                                            {
    mmx::write (out, binary_helper<C>::short_type_name ());
    mmx::write (out, ":", 1);
    mmx::binary_write (out, rep); }
generic duplicate_me ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 508 of file generic.hpp.

References mmx::duplicate().

{ return as<generic> (duplicate (rep)); }
syntactic expression ( ) const [protected, virtual]

Implements generic_rep.

Definition at line 42 of file syntactic.hpp.

References mmx::flatten().

                                           {
  return flatten (rep); }
generic get_child ( nat  i) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 495 of file generic.hpp.

References inspector< C >::access().

{ return inspector<C>::access (rep, i); }
nat get_exact_hash_value ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 497 of file generic.hpp.

References mmx::exact_hash().

{ return exact_hash (rep); }
nat get_hard_hash_value ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 496 of file generic.hpp.

References mmx::hard_hash().

{ return hard_hash (rep); }
nat get_hash_value ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 498 of file generic.hpp.

References mmx::hash().

{ return hash (rep); }
nat get_length ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 494 of file generic.hpp.

References inspector< C >::length().

{ return inspector<C>::length (rep); }
nat get_species_type ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 493 of file generic.hpp.

{ return species_type_information<C>::id; }
nat get_symbolic_type ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 492 of file generic.hpp.

{ return symbolic_type_information<C>::id; }
nat get_type ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 490 of file generic.hpp.

{ return type_information<C>::id; }
bool is_equal ( const generic g) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 505 of file generic.hpp.

References mmx::type().

                                         {
    if (type (g) != type_information<C>::id) return false;
    return rep == ((generic_concrete_rep<C>*) inspect (g)) -> rep; }
bool is_exact_eq ( const generic g) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 502 of file generic.hpp.

References mmx::exact_eq(), and mmx::type().

                                            {
    if (type (g) != type_information<C>::id) return false;
    return exact_eq (rep, ((generic_concrete_rep<C>*) inspect (g)) -> rep); }
bool is_hard_eq ( const generic g) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 499 of file generic.hpp.

References mmx::hard_eq(), and mmx::type().

                                           {
    if (type (g) != type_information<C>::id) return false;
    return hard_eq (rep, ((generic_concrete_rep<C>*) inspect (g)) -> rep); }
generic make_abstract_vector ( ) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 518 of file generic.hpp.

                                        {
    return vector_as_helper<C>::abstract (rep); }
generic make_concrete_vector ( const generic v) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 520 of file generic.hpp.

References vector_as_helper< C >::concrete().

                                                        {
    return as<generic> (vector_as_helper<C>::concrete (v)); }
generic me ( ) const [inline, inherited]
bool same_type ( const generic g) const [inline, protected, virtual]

Implements generic_rep.

Definition at line 491 of file generic.hpp.

{ return is<C> (g); }

Friends And Related Function Documentation

friend class generic [friend, inherited]

Definition at line 123 of file generic.hpp.


Member Data Documentation

MMX_ALLOCATORS int ref_count [inherited]

Definition at line 138 of file basix.hpp.

C rep

Definition at line 487 of file generic.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines