Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
Imp< ii, BASE > Struct Template Reference

Description

template<uint ii, class BASE = Interface>
struct lib::test::anonymous_namespace{polymorphic-value-test.cpp}::Imp< ii, BASE >

Template to generate concrete implementation classes.

Note
the generated classes vary largely in size, and moreover the actual place to store the checksum also depends on that size parameter.

Definition at line 77 of file polymorphic-value-test.cpp.

Public Attributes

long localData_ [ii]
 

Public Member Functions

 ~Imp ()
 
 Imp ()
 
 Imp (Imp const &o)
 
Impoperator= (Imp const &o)
 
- Public Member Functions inherited from Interface
virtual ~Interface ()
 
bool operator== (Interface const &o) const
 

Private Member Functions

virtual long apiFunc ()
 
long & localSum ()
 
void mark (long markerValue)
 
void copyData (Imp const &o)
 

Constructor & Destructor Documentation

◆ ~Imp()

template<uint ii, class BASE = Interface>
~Imp ( )
inline

Definition at line 81 of file polymorphic-value-test.cpp.

◆ Imp() [1/2]

template<uint ii, class BASE = Interface>
Imp ( )
inline

◆ Imp() [2/2]

template<uint ii, class BASE = Interface>
Imp ( Imp< ii, BASE > const &  o)
inline

Member Function Documentation

◆ operator=()

template<uint ii, class BASE = Interface>
Imp & operator= ( Imp< ii, BASE > const &  o)
inline

◆ apiFunc()

template<uint ii, class BASE = Interface>
virtual long apiFunc ( )
inlineprivatevirtual

Implements Interface.

Definition at line 113 of file polymorphic-value-test.cpp.

References lib::test::anonymous_namespace{polymorphic-value-test.cpp}::_callSum, and lib::rani().

+ Here is the call graph for this function:

◆ localSum()

template<uint ii, class BASE = Interface>
long & localSum ( )
inlineprivatevirtual

Implements Interface.

Definition at line 122 of file polymorphic-value-test.cpp.

◆ mark()

template<uint ii, class BASE = Interface>
void mark ( long  markerValue)
inlineprivate

◆ copyData()

template<uint ii, class BASE = Interface>
void copyData ( Imp< ii, BASE > const &  o)
inlineprivate

Definition at line 135 of file polymorphic-value-test.cpp.

References Imp< ii, BASE >::localData_.

Member Data Documentation

◆ localData_

template<uint ii, class BASE = Interface>
long localData_[ii]

Definition at line 79 of file polymorphic-value-test.cpp.

Referenced by Imp< ii, BASE >::copyData().

+ Inheritance diagram for Imp< ii, BASE >:
+ Collaboration diagram for Imp< ii, BASE >:

The documentation for this struct was generated from the following file: