Lolly 1.4.28
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
lolly::data::lolly_tree_rep< T > Class Template Reference

#include <lolly_tree.hpp>

Inheritance diagram for lolly::data::lolly_tree_rep< T >:
Inheritance graph
[legend]
Collaboration diagram for lolly::data::lolly_tree_rep< T >:
Collaboration graph
[legend]

Public Member Functions

 lolly_tree_rep (string l)
 
 lolly_tree_rep (int l, array< lolly_tree< T > > a2)
 
 ~lolly_tree_rep ()
 

Public Attributes

int op
 
data
 
union { 
 
   string   label 
 
   array< lolly_tree< T > >   a 
 
};  
 

Friends

class lolly_tree< T >
 

Additional Inherited Members

- Private Member Functions inherited from concrete_struct
 concrete_struct ()
 Default constructor for the concrete object. Increments the reference count.
 
virtual ~concrete_struct ()
 Virtual destructor for the concrete object. Decrements the reference count.
 
- Private Attributes inherited from concrete_struct
int ref_count
 The reference count for the concrete object.
 

Detailed Description

template<typename T>
class lolly::data::lolly_tree_rep< T >

Definition at line 140 of file lolly_tree.hpp.

Constructor & Destructor Documentation

◆ lolly_tree_rep() [1/2]

template<typename T >
lolly::data::lolly_tree_rep< T >::lolly_tree_rep ( string l)
inline

Definition at line 150 of file lolly_tree.hpp.

◆ lolly_tree_rep() [2/2]

template<typename T >
lolly::data::lolly_tree_rep< T >::lolly_tree_rep ( int l,
array< lolly_tree< T > > a2 )
inline

Definition at line 151 of file lolly_tree.hpp.

151: op (l), a (a2) {}
The list class represents a linked list.
Definition list.hpp:48
array< lolly_tree< T > > a

◆ ~lolly_tree_rep()

template<typename T >
lolly::data::lolly_tree_rep< T >::~lolly_tree_rep ( )
inline

Definition at line 152 of file lolly_tree.hpp.

152 {
153 if (op == 0) {
154 label.~string ();
155 }
156 else if (op > 0) {
157 a.~array ();
158 };
159 }

Friends And Related Symbol Documentation

◆ lolly_tree< T >

template<typename T >
friend class lolly_tree< T >
friend

Definition at line 152 of file lolly_tree.hpp.

Member Data Documentation

◆ op

template<typename T >
int lolly::data::lolly_tree_rep< T >::op

Definition at line 143 of file lolly_tree.hpp.

◆ data

template<typename T >
T lolly::data::lolly_tree_rep< T >::data

Definition at line 144 of file lolly_tree.hpp.

◆ label

template<typename T >
string lolly::data::lolly_tree_rep< T >::label

Definition at line 146 of file lolly_tree.hpp.

◆ a

Definition at line 147 of file lolly_tree.hpp.

◆ [union]

union { ... } lolly::data::lolly_tree_rep< T >

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