PVStructure inline access to member variables

This commit is contained in:
Michael Davidsaver
2018-07-31 15:35:45 -07:00
parent 850d4ff056
commit 64158376f5
2 changed files with 3 additions and 15 deletions

View File

@@ -60,9 +60,7 @@ PVStructure::PVStructure(StructureConstPtr const & structurePtr,
}
}
PVStructure::~PVStructure()
{
}
PVStructure::~PVStructure() {}
void PVStructure::setImmutable()
{
@@ -74,16 +72,6 @@ void PVStructure::setImmutable()
PVField::setImmutable();
}
const StructureConstPtr& PVStructure::getStructure() const
{
return structurePtr;
}
const PVFieldPtrArray & PVStructure::getPVFields() const
{
return pvFields;
}
PVFieldPtr PVStructure::getSubFieldImpl(size_t fieldOffset, bool throws) const
{
const PVStructure *current = this;

View File

@@ -747,12 +747,12 @@ public:
* Get the introspection interface
* @return The interface.
*/
const StructureConstPtr &getStructure() const;
inline const StructureConstPtr &getStructure() const { return structurePtr; }
/**
* Get the array of pointers to the subfields in the structure.
* @return The array.
*/
const PVFieldPtrArray & getPVFields() const;
inline const PVFieldPtrArray & getPVFields() const { return pvFields; }
/**
* Get the subfield with the specified offset.