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 495 of file generic.hpp.


Constructor & Destructor Documentation

generic_concrete_rep ( const C rep2  )  [inline]

Definition at line 547 of file generic.hpp.

00547 : rep (rep2) {}


Member Function Documentation

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

Reimplemented from generic_rep.

Definition at line 540 of file generic.hpp.

References mmx::apply().

00540                                              {
00541     if (code < Acc::nr_apply)
00542       return (routine*) (void*)
00543         (((routine_rep**) (void*) Acc::apply) + code);
00544     else return NULL; }

routine* acc_construct ( nat  id  )  const [inline, protected, virtual]

Reimplemented from generic_rep.

Definition at line 535 of file generic.hpp.

References mmx::construct().

00535                                                {
00536     if (id < Acc::nr_construct)
00537       return (routine*) (void*)
00538         (((routine_rep**) (void*) Acc::construct) + id);
00539     else return NULL; }

nat acc_id (  )  const [inline, protected, virtual]

Reimplemented from generic_rep.

Definition at line 533 of file generic.hpp.

00533                              {
00534     return Acc::id; }

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

Implements generic_rep.

Definition at line 522 of file generic.hpp.

References mmx::binary_disassemble().

00522                                       {
00523     return mmx::binary_disassemble (rep); }

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

Implements generic_rep.

Definition at line 520 of file generic.hpp.

References void_binary_helper< C >::full_type_name().

00520                                {
00521     return binary_helper<C>::full_type_name (); }

void binary_write ( const port out  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 524 of file generic.hpp.

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

00524                                             {
00525     mmx::write (out, binary_helper<C>::short_type_name ());
00526     mmx::write (out, ":", 1);
00527     mmx::binary_write (out, rep); }

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

Implements generic_rep.

Definition at line 518 of file generic.hpp.

References mmx::duplicate().

00518 { return as<generic> (duplicate (rep)); }

syntactic expression (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 348 of file syntactic.hpp.

References mmx::flatten(), and generic_concrete_rep< C >::rep.

00348                                            {
00349   return flatten (rep); }

generic get_child ( nat  i  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 505 of file generic.hpp.

References inspector< C >::access().

00505 { return inspector<C>::access (rep, i); }

nat get_exact_hash_value (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 507 of file generic.hpp.

References mmx::exact_hash().

00507 { return exact_hash (rep); }

nat get_hard_hash_value (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 506 of file generic.hpp.

References mmx::hard_hash().

00506 { return hard_hash (rep); }

nat get_hash_value (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 508 of file generic.hpp.

References mmx::hash().

00508 { return hash (rep); }

nat get_length (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 504 of file generic.hpp.

References inspector< C >::length().

00504 { return inspector<C>::length (rep); }

nat get_species_type (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 503 of file generic.hpp.

00503 { return species_type_information<C>::id; }

nat get_symbolic_type (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 502 of file generic.hpp.

00502 { return symbolic_type_information<C>::id; }

nat get_type (  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 500 of file generic.hpp.

00500 { return type_information<C>::id; }

bool is_equal ( const generic g  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 515 of file generic.hpp.

References mmx::type().

00515                                          {
00516     if (type (g) != type_information<C>::id) return false;
00517     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 512 of file generic.hpp.

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

00512                                             {
00513     if (type (g) != type_information<C>::id) return false;
00514     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 509 of file generic.hpp.

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

00509                                            {
00510     if (type (g) != type_information<C>::id) return false;
00511     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 528 of file generic.hpp.

00528                                         {
00529     return vector_as_helper<C>::abstract (rep); }

generic make_concrete_vector ( const generic v  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 530 of file generic.hpp.

References vector_as_helper< C >::concrete().

00530                                                         {
00531     return as<generic> (vector_as_helper<C>::concrete (v)); }

generic me (  )  const [inline, inherited]

Definition at line 148 of file generic.hpp.

00148                                       {
00149   return generic (this, true); }

bool same_type ( const generic g  )  const [inline, protected, virtual]

Implements generic_rep.

Definition at line 501 of file generic.hpp.

00501 { 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 164 of file basix.hpp.

C rep

Definition at line 497 of file generic.hpp.

Referenced by generic_concrete_rep< C >::expression().


The documentation for this class was generated from the following files:

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1