Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepRepr / StepRepr_CompoundRepresentationItem.cxx
CommitLineData
7fd59977 1#include <StepRepr_CompoundRepresentationItem.ixx>
2
3StepRepr_CompoundRepresentationItem::StepRepr_CompoundRepresentationItem () { }
4
5void StepRepr_CompoundRepresentationItem::Init
6 (const Handle(TCollection_HAsciiString)& aName,
7 const Handle(StepRepr_HArray1OfRepresentationItem)& item_element)
8{
9 StepRepr_RepresentationItem::Init (aName);
10 theItemElement = item_element;
11}
12
13Handle(StepRepr_HArray1OfRepresentationItem) StepRepr_CompoundRepresentationItem::ItemElement () const
14{ return theItemElement; }
15
16Standard_Integer StepRepr_CompoundRepresentationItem::NbItemElement () const
17{ return (theItemElement.IsNull() ? 0 : theItemElement->Length()); }
18
19void StepRepr_CompoundRepresentationItem::SetItemElement
20 (const Handle(StepRepr_HArray1OfRepresentationItem)& item_element)
21{ theItemElement = item_element; }
22
23Handle(StepRepr_RepresentationItem) StepRepr_CompoundRepresentationItem::ItemElementValue
24 (const Standard_Integer num) const
25{ return theItemElement->Value(num); }
26
27void StepRepr_CompoundRepresentationItem::SetItemElementValue
28 (const Standard_Integer num, const Handle(StepRepr_RepresentationItem)& anelement)
29{ theItemElement->SetValue (num,anelement); }