Lolly 1.4.28
Loading...
Searching...
No Matches
Private Member Functions | List of all members
lolly::data::lolly_tree< T > Class Template Reference

#include <lolly_tree.hpp>

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

Private Member Functions

 CONCRETE_TEMPLATE (lolly_tree, T)
 
 lolly_tree ()
 
 lolly_tree (string l)
 
 lolly_tree (const char *l)
 
 lolly_tree (lolly_tree_rep< T > *rep2)
 
 lolly_tree (int l, int n=0)
 
 lolly_tree (int l, array< lolly_tree< T > > a)
 
 lolly_tree (lolly_tree< T > t, int n)
 
 lolly_tree (int l, lolly_tree< T > t1)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2, lolly_tree< T > t3)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2, lolly_tree< T > t3, lolly_tree< T > t4)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2, lolly_tree< T > t3, lolly_tree< T > t4, lolly_tree< T > t5)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2, lolly_tree< T > t3, lolly_tree< T > t4, lolly_tree< T > t5, lolly_tree< T > t6)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2, lolly_tree< T > t3, lolly_tree< T > t4, lolly_tree< T > t5, lolly_tree< T > t6, lolly_tree< T > t7)
 
 lolly_tree (int l, lolly_tree< T > t1, lolly_tree< T > t2, lolly_tree< T > t3, lolly_tree< T > t4, lolly_tree< T > t5, lolly_tree< T > t6, lolly_tree< T > t7, lolly_tree< T > t8)
 
lolly_tree< T > & operator[] (int i)
 
lolly_tree< T > operator() (int start, int end)
 
lolly_tree< T > * begin ()
 
lolly_tree< T > * end ()
 

Detailed Description

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

Definition at line 26 of file lolly_tree.hpp.

Constructor & Destructor Documentation

◆ lolly_tree() [1/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( )
inlineprivate

Definition at line 30 of file lolly_tree.hpp.

30: rep (tm_new<lolly_tree_rep<T>> (string ())) {}
The list class represents a linked list.
Definition list.hpp:48
C * tm_new()
base class of resources
Definition resource.hpp:23

◆ lolly_tree() [2/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( string l)
inlineprivate

Definition at line 30 of file lolly_tree.hpp.

◆ lolly_tree() [3/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( const char * l)
inlineprivate

Definition at line 32 of file lolly_tree.hpp.

◆ lolly_tree() [4/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( lolly_tree_rep< T > * rep2)
inlineprivate

Definition at line 34 of file lolly_tree.hpp.

34: rep (rep2) { rep->ref_count++; }

◆ lolly_tree() [5/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
int n = 0 )
inlineprivate

Definition at line 36 of file lolly_tree.hpp.

A template class representing an array.
Definition array.hpp:95

◆ lolly_tree() [6/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
array< lolly_tree< T > > a )
inlineprivate

Definition at line 39 of file lolly_tree.hpp.

40 : rep (tm_new<lolly_tree_rep<T>> (l, a)) {}

◆ lolly_tree() [7/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( lolly_tree< T > t,
int n )
inlineprivate

Definition at line 42 of file lolly_tree.hpp.

45 }
blackbox t[13]
blackbox_rep * rep
Definition blackbox.hpp:27
#define CHECK_COMPOUND(t)

◆ lolly_tree() [8/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1 )
inlineprivate

Definition at line 47 of file lolly_tree.hpp.

49 rep->a[0]= t1;
50 }
blackbox t1

◆ lolly_tree() [9/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2 )
inlineprivate

Definition at line 52 of file lolly_tree.hpp.

54 rep->a[0]= t1;
55 rep->a[1]= t2;
56 }
blackbox t2

◆ lolly_tree() [10/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2,
lolly_tree< T > t3 )
inlineprivate

Definition at line 58 of file lolly_tree.hpp.

61 rep->a[0]= t1;
62 rep->a[1]= t2;
63 rep->a[2]= t3;
64 }
blackbox t3

◆ lolly_tree() [11/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2,
lolly_tree< T > t3,
lolly_tree< T > t4 )
inlineprivate

Definition at line 66 of file lolly_tree.hpp.

69 rep->a[0]= t1;
70 rep->a[1]= t2;
71 rep->a[2]= t3;
72 rep->a[3]= t4;
73 }
blackbox t4

◆ lolly_tree() [12/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2,
lolly_tree< T > t3,
lolly_tree< T > t4,
lolly_tree< T > t5 )
inlineprivate

Definition at line 75 of file lolly_tree.hpp.

78 rep->a[0]= t1;
79 rep->a[1]= t2;
80 rep->a[2]= t3;
81 rep->a[3]= t4;
82 rep->a[4]= t5;
83 }
blackbox t5

◆ lolly_tree() [13/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2,
lolly_tree< T > t3,
lolly_tree< T > t4,
lolly_tree< T > t5,
lolly_tree< T > t6 )
inlineprivate

Definition at line 85 of file lolly_tree.hpp.

89 rep->a[0]= t1;
90 rep->a[1]= t2;
91 rep->a[2]= t3;
92 rep->a[3]= t4;
93 rep->a[4]= t5;
94 rep->a[5]= t6;
95 }
blackbox t6

◆ lolly_tree() [14/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2,
lolly_tree< T > t3,
lolly_tree< T > t4,
lolly_tree< T > t5,
lolly_tree< T > t6,
lolly_tree< T > t7 )
inlineprivate

Definition at line 97 of file lolly_tree.hpp.

101 rep->a[0]= t1;
102 rep->a[1]= t2;
103 rep->a[2]= t3;
104 rep->a[3]= t4;
105 rep->a[4]= t5;
106 rep->a[5]= t6;
107 rep->a[6]= t7;
108 }
blackbox t7

◆ lolly_tree() [15/15]

template<typename T >
lolly::data::lolly_tree< T >::lolly_tree ( int l,
lolly_tree< T > t1,
lolly_tree< T > t2,
lolly_tree< T > t3,
lolly_tree< T > t4,
lolly_tree< T > t5,
lolly_tree< T > t6,
lolly_tree< T > t7,
lolly_tree< T > t8 )
inlineprivate

Definition at line 110 of file lolly_tree.hpp.

114 rep->a[0]= t1;
115 rep->a[1]= t2;
116 rep->a[2]= t3;
117 rep->a[3]= t4;
118 rep->a[4]= t5;
119 rep->a[5]= t6;
120 rep->a[6]= t7;
121 rep->a[7]= t8;
122 }
blackbox t8

Member Function Documentation

◆ CONCRETE_TEMPLATE()

template<typename T >
lolly::data::lolly_tree< T >::CONCRETE_TEMPLATE ( lolly_tree< T > ,
T  )
private

◆ operator[]()

template<typename T >
lolly_tree< T > & lolly::data::lolly_tree< T >::operator[] ( int i)
inlineprivate

Definition at line 124 of file lolly_tree.hpp.

124 {
125 CHECK_COMPOUND (*this);
126 return rep->a[i];
127 }

◆ operator()()

template<typename T >
lolly_tree< T > lolly::data::lolly_tree< T >::operator() ( int start,
int end )
inlineprivate

Definition at line 129 of file lolly_tree.hpp.

129 {
130 lolly_tree<T> r (rep->op, end - start);
131 for (int i= start; i < end; i++)
132 r[i - start]= rep->a[i];
133 return r;
134 }
lolly_tree< T > * end()

◆ begin()

template<typename T >
lolly_tree< T > * lolly::data::lolly_tree< T >::begin ( )
inlineprivate

Definition at line 135 of file lolly_tree.hpp.

135{ return rep->a.begin (); }

◆ end()

template<typename T >
lolly_tree< T > * lolly::data::lolly_tree< T >::end ( )
inlineprivate

Definition at line 136 of file lolly_tree.hpp.

136{ return rep->a.end (); }

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