Choreonoid  1.8
ReferencedObjectSeqItem.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BASE_REFERENCED_OBJECT_SEQ_ITEM_H
7 #define CNOID_BASE_REFERENCED_OBJECT_SEQ_ITEM_H
8 
9 #include "AbstractSeqItem.h"
10 #include <cnoid/ReferencedObjectSeq>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class CNOID_EXPORT ReferencedObjectSeqItem : public AbstractSeqItem
16 {
17 public:
18  static void initializeClass(ExtensionManager* ext);
19 
22  ReferencedObjectSeqItem(std::shared_ptr<ReferencedObjectSeq> seq);
23 
24  virtual std::shared_ptr<AbstractSeq> abstractSeq() override;
25 
26  std::shared_ptr<ReferencedObjectSeq> seq() { return seq_; }
27 
28  void resetSeq();
29 
30 protected:
34  ReferencedObjectSeqItem(const ReferencedObjectSeqItem& org, std::shared_ptr<ReferencedObjectSeq> cloneSeq);
35 
36  virtual ~ReferencedObjectSeqItem();
37 
38  virtual Item* doDuplicate() const override;
39 
40  std::shared_ptr<ReferencedObjectSeq> seq_;
41 };
42 
44 
45 }
46 
47 #endif
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
AbstractSeqItem.h
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid::ReferencedObjectSeqItem
Definition: ReferencedObjectSeqItem.h:15
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::ReferencedObjectSeqItem::seq
std::shared_ptr< ReferencedObjectSeq > seq()
Definition: ReferencedObjectSeqItem.h:26
cnoid::AbstractSeqItem
Definition: AbstractSeqItem.h:15
cnoid::ReferencedObjectSeqItem::seq_
std::shared_ptr< ReferencedObjectSeq > seq_
Definition: ReferencedObjectSeqItem.h:40
cnoid::ReferencedObjectSeqItemPtr
ref_ptr< ReferencedObjectSeqItem > ReferencedObjectSeqItemPtr
Definition: ReferencedObjectSeqItem.h:43