Jpp
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
JGIZMO::JManager< JKey_t, JValue_t > Class Template Reference

Auxiliary class to manage set of compatible ROOT objects (e.g. More...

#include <JManager.hh>

Inheritance diagram for JGIZMO::JManager< JKey_t, JValue_t >:
JLANG::JPointer< JClass_t > std::map< JKey_t, JPointer< JValue_t > > JLANG::JAbstractPointer< JClass_t > JLANG::JEquals< JAbstractPointer< JClass_t > >

Public Types

typedef std::map< JKey_t, JPointer< JValue_t > > map_type
 

Public Member Functions

 JManager ()
 Default constructor. More...
 
 JManager (JValue_t *master, char wildcard='%', std::ios::fmtflags format=std::ios::fmtflags())
 Constructor. More...
 
 JManager (const JManager &manager)
 Copy constructor. More...
 
void clear ()
 Clear client objects. More...
 
JValue_t * operator[] (JKey_t key)
 Get pointer to object for given key. More...
 
void Read (TDirectory &in)
 Read objects from file. More...
 
void Write (TDirectory &out, const bool wm=false)
 Write objects to file. More...
 
void Write (const char *file_name, const bool wm=false)
 Write objects to file. More...
 
virtual JClass_t * get () const
 Get pointer. More...
 
virtual void set (JClass_t *p)
 Set pointer. More...
 
template<class T >
void set (const JPointer< T > &pointer)
 Set pointer. More...
 
virtual void reset ()
 Reset pointer. More...
 
template<class T >
void reset (const JPointer< T > &pointer)
 Reset pointer. More...
 
void reset (JClass_t *p)
 Reset pointer. More...
 
JClass_t *const & getReference () const
 Get rereference to internal pointer. More...
 
JClass_t *& getReference ()
 Get rereference to internal pointer. More...
 
virtual bool equals (const JAbstractPointer &object) const
 Equals. More...
 
bool is_valid () const
 Check validity of pointer. More...
 
JClass_t * operator-> () const
 Smart pointer operator. More...
 
 operator JClass_t * () const
 Type conversion operator. More...
 

Static Public Member Functions

static JManager Read (TDirectory &in, const char *const master, const char wildcard)
 Read objects from file into manager. More...
 

Public Attributes

char wc
 
std::ios::fmtflags fmt
 

Protected Attributes

JClass_t * __p
 pointer to object More...
 

Friends

TFile & operator>> (TFile &file, JManager &object)
 Read manager from file. More...
 
TFile & operator<< (TFile &file, JManager &object)
 Write manager to file. More...
 

Detailed Description

template<class JKey_t, class JValue_t = TObject>
class JGIZMO::JManager< JKey_t, JValue_t >

Auxiliary class to manage set of compatible ROOT objects (e.g.

histograms) using unique keys. For each use of the map operator [], it is checked whether the corresponding client object exists. If the corresponding client object does not yet exists, a clone is made of the master object (i.e. the 'client'). The name of the newly created object is derived from the name of the master object by replacing the wild card character with the value of the key according the optional format specifier.

Definition at line 40 of file JManager.hh.

Member Typedef Documentation

◆ map_type

template<class JKey_t, class JValue_t = TObject>
typedef std::map<JKey_t, JPointer<JValue_t> > JGIZMO::JManager< JKey_t, JValue_t >::map_type

Definition at line 46 of file JManager.hh.

Constructor & Destructor Documentation

◆ JManager() [1/3]

template<class JKey_t, class JValue_t = TObject>
JGIZMO::JManager< JKey_t, JValue_t >::JManager ( )
inline

Default constructor.

Definition at line 51 of file JManager.hh.

52  {}

◆ JManager() [2/3]

template<class JKey_t, class JValue_t = TObject>
JGIZMO::JManager< JKey_t, JValue_t >::JManager ( JValue_t *  master,
char  wildcard = '%',
std::ios::fmtflags  format = std::ios::fmtflags() 
)
inline

Constructor.

Note that the manager owns the master object pointed to. For saving the objects to file, use method Write (all objects are detached from the current ROOT directory).

Parameters
mastermaster object
wildcardwild card character
formatformat specifier for replacement of wildcard character by value of key

Definition at line 66 of file JManager.hh.

68  :
69  JPointer<JValue_t>(master),
70  map_type(),
71  wc (wildcard),
72  fmt(format)
73  {
74  using namespace std;
75  using namespace JPP;
76 
77  if (master == NULL) {
78  THROW(JException, "JManager: No master object.");
79  }
80 
81  master->SetDirectory(0);
82 
83  if (string(master->GetName()).find(wc) == string::npos) {
84  THROW(JException, "JManager: Missing wildcard " << master->GetName() << ' ' << wc);
85  }
86  }

◆ JManager() [3/3]

template<class JKey_t, class JValue_t = TObject>
JGIZMO::JManager< JKey_t, JValue_t >::JManager ( const JManager< JKey_t, JValue_t > &  manager)
inline

Copy constructor.

Note that the master object of the given manager is cloned and the wildcard copied. The client objects are not copied.

Parameters
managermanager

Definition at line 97 of file JManager.hh.

97  :
98  JPointer<JValue_t>(NULL),
99  map_type(),
100  wc (manager.wc),
101  fmt(manager.fmt)
102  {
103  using namespace std;
104  using namespace JPP;
105 
106  if (manager.is_valid()) {
107 
108  this->set((JValue_t*) manager.get()->Clone());
109 
110  this->get()->Reset();
111  this->get()->SetDirectory(0);
112 
113  if (string(this->get()->GetName()).find(wc) == string::npos) {
114  THROW(JException, "JManager: Missing wildcard " << this->get()->GetName() << ' ' << wc);
115  }
116  }
117  }

Member Function Documentation

◆ clear()

template<class JKey_t, class JValue_t = TObject>
void JGIZMO::JManager< JKey_t, JValue_t >::clear ( )
inline

Clear client objects.

Definition at line 123 of file JManager.hh.

124  {
125  for (typename map_type::iterator i = this->begin(); i != this->end(); ++i) {
126  i->second.reset();
127  }
128 
129  static_cast<map_type&>(*this).clear();
130  }

◆ operator[]()

template<class JKey_t, class JValue_t = TObject>
JValue_t* JGIZMO::JManager< JKey_t, JValue_t >::operator[] ( JKey_t  key)
inline

Get pointer to object for given key.

Parameters
keykey
Returns
pointer to client object

Definition at line 139 of file JManager.hh.

140  {
141  using namespace std;
142 
143  typename map_type::iterator i = this->find(key);
144 
145  if (i == this->end()) {
146 
147  string buffer = this->get()->GetName();
148  string::size_type ipos = buffer.find(wc);
149 
150  ostringstream os;
151 
152  os.setf(fmt);
153 
154  os << key;
155 
156  buffer.replace(ipos, 1, os.str());
157 
158  JValue_t* p = (JValue_t*) this->get()->Clone(buffer.c_str());
159 
160  p->Reset();
161  p->SetDirectory(0);
162 
163  this->insert(make_pair(key,p));
164 
165  return p;
166 
167  } else {
168 
169  return i->second;
170  }
171  }

◆ Read() [1/2]

template<class JKey_t, class JValue_t = TObject>
static JManager JGIZMO::JManager< JKey_t, JValue_t >::Read ( TDirectory &  in,
const char *const  master,
const char  wildcard 
)
inlinestatic

Read objects from file into manager.

Parameters
ininput file or directory
mastermaster name
wildcardwild card character
Returns
manager

Definition at line 182 of file JManager.hh.

183  {
184  using namespace std;
185 
186  JManager manager;
187 
188  TString buffer = master;
189 
190  const Ssiz_t pos = buffer.Index(wildcard);
191 
192  const TString a = buffer(0, pos);
193  const TString b = buffer(pos+1, buffer.Length());
194 
195  buffer.ReplaceAll("[", "\\[");
196  buffer.ReplaceAll("]", "\\]");
197 
198  buffer.ReplaceAll(wildcard, ".*");
199 
200  const TRegexp regexp(buffer);
201 
202  TIter iter(in.GetListOfKeys());
203 
204  for (TKey* key; (key = (TKey*) iter.Next()) != NULL; ) {
205 
206  const TString tag(key->GetName());
207 
208  // option match
209 
210  if (tag.Index(regexp) != -1) {
211 
212  JValue_t* p = dynamic_cast<JValue_t*>(key->ReadObj());
213 
214  if (p != NULL) {
215 
216  p->SetDirectory(0);
217 
218  string buffer = p->GetName();
219 
220  if (a.Length() != 0) { buffer.replace(buffer.find(a), a.Length(), ""); }
221  if (b.Length() != 0) { buffer.replace(buffer.find(b), b.Length(), ""); }
222 
223  JKey_t key;
224 
225  istringstream(buffer) >> key;
226 
227  manager.insert(make_pair(key, p));
228  }
229  }
230  }
231 
232  return manager;
233  }

◆ Read() [2/2]

template<class JKey_t, class JValue_t = TObject>
void JGIZMO::JManager< JKey_t, JValue_t >::Read ( TDirectory &  in)
inline

Read objects from file.

Parameters
ininput file or directory

Definition at line 241 of file JManager.hh.

242  {
243  if (this->is_valid()) {
244 
245  JManager buffer = Read(in, this->get()->GetName(), this->wc);
246 
247  this->swap(buffer);
248  }
249  }

◆ Write() [1/2]

template<class JKey_t, class JValue_t = TObject>
void JGIZMO::JManager< JKey_t, JValue_t >::Write ( TDirectory &  out,
const bool  wm = false 
)
inline

Write objects to file.

Parameters
outoutput file or directory
wmwrite master

Definition at line 258 of file JManager.hh.

259  {
260  for (typename map_type::iterator i = this->begin(); i != this->end(); ++i) {
261  out.WriteTObject(i->second);
262  }
263 
264  if (wm) {
265  out.WriteTObject(this->get());
266  }
267  }

◆ Write() [2/2]

template<class JKey_t, class JValue_t = TObject>
void JGIZMO::JManager< JKey_t, JValue_t >::Write ( const char *  file_name,
const bool  wm = false 
)
inline

Write objects to file.

Parameters
file_namefile name
wmwrite master

Definition at line 276 of file JManager.hh.

277  {
278  TFile out(file_name, "RECREATE");
279 
280  this->Write(out, wm) ;
281 
282  out.Write();
283  out.Close();
284  }

◆ get()

template<class JClass_t>
virtual JClass_t* JLANG::JPointer< JClass_t >::get ( ) const
inlinevirtualinherited

◆ set() [1/2]

template<class JClass_t>
virtual void JLANG::JPointer< JClass_t >::set ( JClass_t *  p)
inlinevirtualinherited

Set pointer.

Parameters
ppointer to object

Implements JLANG::JAbstractPointer< JClass_t >.

Reimplemented in JLANG::JSharedPointer< match_type >, JLANG::JSharedPointer< JWeightEvent >, JLANG::JSharedPointer< JTRIGGER::JMatch >, JLANG::JSharedPointer< JTOOLS::JMultiMapTransformer >, JLANG::JSharedPointer< JRewindableObjectIterator< T > >, JLANG::JSharedPointer< JRewindableObjectIterator< JTail_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JHead_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< const T > >, JLANG::JSharedPointer< JPropertiesElementInterface >, JLANG::JSharedPointer< JPHYSICS::JRadiation >, JLANG::JSharedPointer< JParserElementInterface >, JLANG::JSharedPointer< JObjectOutput< T > >, JLANG::JSharedPointer< JObjectOutput< JTail_t > >, JLANG::JSharedPointer< JObjectOutput< JHead_t > >, JLANG::JSharedPointer< JObjectIterator< T > >, JLANG::JSharedPointer< JNET::JControlHost >, JLANG::JSharedPointer< JLOGGER::JLogger >, JLANG::JSharedPointer< JFIT::JMEstimator >, JLANG::JSharedPointer< JExceptionHandler >, JLANG::JSharedPointer< JClass_t, JMemory_t >, JLANG::JSharedPointer< JBase_t >, JLANG::JSharedPointer< JAccessibleObjectOutput< T > >, JLANG::JSharedPointer< JAccessibleObjectIterator< T > >, JLANG::JSharedPointer< JAccessibleObjectIterator< KM3NETDAQ::JDAQEvent > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JTypeList< JDAQEvent, JTypelist_t > > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JTail_t > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JHead_t > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JDAQSummaryslice > >, JLANG::JSharedPointer< JAbstractAutoPointer< JBase_t > >, and JLANG::JSharedPointer< const JDETECTOR::JModuleRouter >.

Definition at line 75 of file JPointer.hh.

76  {
77  this->__p = p;
78  }

◆ set() [2/2]

template<class JClass_t>
template<class T >
void JLANG::JPointer< JClass_t >::set ( const JPointer< T > &  pointer)
inlineinherited

Set pointer.

Parameters
pointerpointer to object

Definition at line 96 of file JPointer.hh.

97  {
98  this->set(pointer.get());
99  }

◆ reset() [1/3]

template<class JClass_t>
virtual void JLANG::JPointer< JClass_t >::reset ( )
inlinevirtualinherited

Reset pointer.

Implements JLANG::JAbstractPointer< JClass_t >.

Reimplemented in JLANG::JSharedPointer< JClass_t, JMemory_t >, JLANG::JSharedPointer< JPHYSICS::JRadiation >, JLANG::JSharedPointer< JWeightEvent >, JLANG::JSharedPointer< JObjectIterator< T > >, JLANG::JSharedPointer< JFIT::JMEstimator >, JLANG::JSharedPointer< JAbstractAutoPointer< JBase_t > >, JLANG::JSharedPointer< match_type >, JLANG::JSharedPointer< JAccessibleObjectIterator< JDAQSummaryslice > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JTypeList< JDAQEvent, JTypelist_t > > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JTail_t > >, JLANG::JSharedPointer< JAccessibleObjectIterator< KM3NETDAQ::JDAQEvent > >, JLANG::JSharedPointer< JLOGGER::JLogger >, JLANG::JSharedPointer< JAccessibleObjectIterator< T > >, JLANG::JSharedPointer< JParserElementInterface >, JLANG::JSharedPointer< const JDETECTOR::JModuleRouter >, JLANG::JSharedPointer< JExceptionHandler >, JLANG::JSharedPointer< JObjectOutput< JHead_t > >, JLANG::JSharedPointer< JAccessibleObjectIterator< JHead_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JTail_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JHead_t > >, JLANG::JSharedPointer< JObjectOutput< T > >, JLANG::JSharedPointer< JBase_t >, JLANG::JSharedPointer< JObjectOutput< JTail_t > >, JLANG::JSharedPointer< JPropertiesElementInterface >, JLANG::JSharedPointer< JTRIGGER::JMatch >, JLANG::JSharedPointer< JRewindableObjectIterator< const T > >, JLANG::JSharedPointer< JRewindableObjectIterator< T > >, JLANG::JSharedPointer< JAccessibleObjectOutput< T > >, JLANG::JSharedPointer< JNET::JControlHost >, JLANG::JSharedPointer< JTOOLS::JMultiMapTransformer >, JLANG::JStorage< JClass_t, JMemory_t >, JLANG::JStorage< JDETECTOR::JK40Simulator, JNew >, JLANG::JStorage< JBuildL2_t, JNew >, JLANG::JStorage< JAccessibleObjectIterator< JTail_t >, JNew >, JLANG::JStorage< match_type, JNew >, JLANG::JStorage< JObjectOutput< JTail_t >, JNew >, JLANG::JStorage< JDETECTOR::JCLBDefaultSimulatorInterface::JStateMachine, JNew >, JLANG::JStorage< JDETECTOR::JPMTSimulator, JNew >, JLANG::JStorage< JObjectIterator< T >, JNew >, JLANG::JStorage< JAccessibleObjectIterator< T >, JNew >, JLANG::JStorage< JRewindableObjectIterator< JTail_t >, JNew >, JLANG::JStorage< JTOOLS::JFunction1D, JNew >, JLANG::JStorage< JAccessibleObjectIterator< KM3NETDAQ::JDAQEvent >, JNew >, JLANG::JStorage< JDETECTOR::JCLBSimulator, JNew >, JLANG::JStorage< JModuleRouter, JNew >, JLANG::JStorage< JTOOLS::JMultiMapTransformer, JNew >, JLANG::JStorage< JTriggerNB, JNew >, JLANG::JStorage< JRewindableObjectIterator< const T >, JNew >, JLANG::JStorage< JBase_t, JNew >, JLANG::JStorage< JWeightEvent, JNew >, JLANG::JStorage< JTrigger3DMuon, JNew >, JLANG::JStorage< JTrigger3DShower, JNew >, JLANG::JStorage< JParserElementInterface, JNew >, JLANG::JStorage< JFIT::JMEstimator, JNew >, JLANG::JStorage< JAbstractAutoPointer< JBase_t >, JNew >, JLANG::JStorage< JAccessibleObjectIterator< JHead_t >, JNew >, JLANG::JStorage< JTRIGGER::JMatch, JNew >, JLANG::JStorage< JPHYSICS::JRadiation, JNew >, JLANG::JStorage< JDETECTOR::JCLBDefaultSimulatorInterface::JTDC, JNew >, JLANG::JStorage< JLANG::JMultiPipe< T, N >, JNew >, JLANG::JStorage< JServerSocket, JNew >, JLANG::JStorage< JAccessibleObjectIterator< JDAQSummaryslice >, JNew >, JLANG::JStorage< JObjectOutput< JHead_t >, JNew >, JLANG::JStorage< JAccessibleObjectIterator< JTypeList< JDAQEvent, JTypelist_t > >, JNew >, JLANG::JStorage< JExceptionHandler, JNew >, JLANG::JStorage< TFile >, JLANG::JStorage< JTimesliceRouter, JNew >, JLANG::JStorage< JControlHost_t, JNew >, JLANG::JStorage< JRewindableObjectIterator< T >, JNew >, JLANG::JStorage< JPropertiesElementInterface, JNew >, JLANG::JStorage< JRewindableObjectIterator< JHead_t >, JNew >, JLANG::JStorage< JBuildL1_t, JNew >, JLANG::JStorage< const JDETECTOR::JModuleRouter, JNew >, JLANG::JStorage< JObjectOutput< T >, JNew >, JLANG::JStorage< JIO::JWriter, JNew >, JLANG::JStorage< JNET::JControlHost, JNew >, JLANG::JStorage< JAccessibleObjectOutput< T >, JNew >, JLANG::JStorage< JIO::JReader, JNew >, JLANG::JStorage< JLOGGER::JLogger, JNew >, and JLANG::JStorage< JTriggerMXShower, JNew >.

Definition at line 84 of file JPointer.hh.

85  {
86  this->__p = NULL;
87  }

◆ reset() [2/3]

template<class JClass_t>
template<class T >
void JLANG::JPointer< JClass_t >::reset ( const JPointer< T > &  pointer)
inlineinherited

Reset pointer.

Parameters
pointerpointer to object

Definition at line 108 of file JPointer.hh.

109  {
110  this->reset(pointer.get());
111  }

◆ reset() [3/3]

template<class JClass_t>
void JLANG::JAbstractPointer< JClass_t >::reset ( JClass_t *  p)
inlineinherited

Reset pointer.

Parameters
ppointer to object

Definition at line 94 of file JAbstractPointer.hh.

95  {
96  if (this->get() != p) {
97 
98  this->reset();
99 
100  if (p != NULL) {
101  this->set(p);
102  }
103  }
104  }

◆ getReference() [1/2]

template<class JClass_t>
JClass_t* const& JLANG::JPointer< JClass_t >::getReference ( ) const
inlineinherited

Get rereference to internal pointer.

Returns
reference to internal pointer

Definition at line 119 of file JPointer.hh.

120  {
121  return __p;
122  }

◆ getReference() [2/2]

template<class JClass_t>
JClass_t* & JLANG::JPointer< JClass_t >::getReference ( )
inlineinherited

Get rereference to internal pointer.

Returns
reference to internal pointer

Definition at line 130 of file JPointer.hh.

131  {
132  return __p;
133  }

◆ equals()

template<class JClass_t>
virtual bool JLANG::JAbstractPointer< JClass_t >::equals ( const JAbstractPointer< JClass_t > &  object) const
inlinevirtualinherited

Equals.

The equality is evaluated by comparison of the internal pointers.

Parameters
objectabstract pointer
Returns
true if equals; else false

Definition at line 50 of file JAbstractPointer.hh.

51  {
52  return this->get() == object.get();
53  }

◆ is_valid()

template<class JClass_t>
bool JLANG::JAbstractPointer< JClass_t >::is_valid ( ) const
inlineinherited

Check validity of pointer.

Returns
true if pointer not null; else false

Definition at line 83 of file JAbstractPointer.hh.

84  {
85  return this->get() != NULL;
86  }

◆ operator->()

template<class JClass_t>
JClass_t* JLANG::JAbstractPointer< JClass_t >::operator-> ( ) const
inlineinherited

Smart pointer operator.

Returns
pointer to object

Definition at line 112 of file JAbstractPointer.hh.

113  {
114  if (!is_valid())
115  throw JNullPointerException("JAbstractPointer::operator->()");
116  else
117  return this->get();
118  }

◆ operator JClass_t *()

template<class JClass_t>
JLANG::JAbstractPointer< JClass_t >::operator JClass_t * ( ) const
inlineinherited

Type conversion operator.

Returns
pointer to object

Definition at line 126 of file JAbstractPointer.hh.

127  {
128  return this->get();
129  }

Friends And Related Function Documentation

◆ operator>>

template<class JKey_t, class JValue_t = TObject>
TFile& operator>> ( TFile &  file,
JManager< JKey_t, JValue_t > &  object 
)
friend

Read manager from file.

Parameters
filefile
objectmanager
Returns
file

Definition at line 294 of file JManager.hh.

295  {
296  object.Read(file);
297 
298  return file;
299  }

◆ operator<<

template<class JKey_t, class JValue_t = TObject>
TFile& operator<< ( TFile &  file,
JManager< JKey_t, JValue_t > &  object 
)
friend

Write manager to file.

Parameters
filefile
objectmanager
Returns
file

Definition at line 309 of file JManager.hh.

310  {
311  object.Write(file);
312 
313  return file;
314  }

Member Data Documentation

◆ wc

template<class JKey_t, class JValue_t = TObject>
char JGIZMO::JManager< JKey_t, JValue_t >::wc

Definition at line 316 of file JManager.hh.

◆ fmt

template<class JKey_t, class JValue_t = TObject>
std::ios::fmtflags JGIZMO::JManager< JKey_t, JValue_t >::fmt

Definition at line 317 of file JManager.hh.

◆ __p

template<class JClass_t>
JClass_t* JLANG::JPointer< JClass_t >::__p
protectedinherited

pointer to object

Definition at line 136 of file JPointer.hh.


The documentation for this class was generated from the following file:
JLANG::JPointer::set
virtual void set(JClass_t *p)
Set pointer.
Definition: JPointer.hh:75
JGIZMO::JManager::wc
char wc
Definition: JManager.hh:316
JLANG::JPointer::get
virtual JClass_t * get() const
Get pointer.
Definition: JPointer.hh:64
JLANG::JPointer::__p
JClass_t * __p
pointer to object
Definition: JPointer.hh:136
JLANG::JNullPointerException
Exception for null pointer operation.
Definition: JException.hh:216
JLANG::JAbstractPointer::reset
virtual void reset()=0
Reset pointer.
JGIZMO::JManager
Auxiliary class to manage set of compatible ROOT objects (e.g.
Definition: JManager.hh:40
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JGIZMO::JManager::fmt
std::ios::fmtflags fmt
Definition: JManager.hh:317
JLANG::JPointer::reset
virtual void reset()
Reset pointer.
Definition: JPointer.hh:84
THROW
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:669
JGIZMO::JManager::Write
void Write(TDirectory &out, const bool wm=false)
Write objects to file.
Definition: JManager.hh:258
std
Definition: jaanetDictionary.h:36
JLANG::JAbstractPointer::get
virtual JClass_t * get() const =0
Get pointer.
JGIZMO::JManager::map_type
std::map< JKey_t, JPointer< JValue_t > > map_type
Definition: JManager.hh:46
JGIZMO::JManager::Read
static JManager Read(TDirectory &in, const char *const master, const char wildcard)
Read objects from file into manager.
Definition: JManager.hh:182
JLANG::JAbstractPointer::is_valid
bool is_valid() const
Check validity of pointer.
Definition: JAbstractPointer.hh:83
JLANG::JAbstractPointer::set
virtual void set(JClass_t *p)=0
Set pointer.