|
cgma
|
Public Member Functions | |
| CardRef (InputDeck &deck_p, DataCard::kind kind, int ident) | |
| virtual const T & | getData () const |
| virtual CardRef< T > * | clone () |
| const DataCard::id_t & | getKey () const |
Protected Attributes | |
| InputDeck & | deck |
| DataCard::id_t | key |
Definition at line 16 of file MCNPInput.cpp.
| CardRef< T >::CardRef | ( | InputDeck & | deck_p, |
| DataCard::kind | kind, | ||
| int | ident | ||
| ) | [inline] |
Definition at line 23 of file MCNPInput.cpp.
:
DataRef<T>(), deck(deck_p), key( std::make_pair( kind, ident ) )
{}
Implements DataRef< T >.
Definition at line 33 of file MCNPInput.cpp.
{
return new CardRef<T>( *this );
}
Implements DataRef< T >.
Definition at line 27 of file MCNPInput.cpp.
{
DataCard* c = deck.lookup_data_card( key );
const T& ref = dynamic_cast< DataRef<T>* >(c)->getData();
return ref;
}
| const DataCard::id_t& CardRef< T >::getKey | ( | ) | const [inline] |
Definition at line 37 of file MCNPInput.cpp.
{ return key; }
Definition at line 19 of file MCNPInput.cpp.
DataCard::id_t CardRef< T >::key [protected] |
Definition at line 20 of file MCNPInput.cpp.