Skip to content

Commit

Permalink
Add more annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and tmadlener committed Jun 26, 2023
1 parent 3c3a6e7 commit cd6d998
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 15 deletions.
4 changes: 2 additions & 2 deletions include/AIDA/IBaseHistogram.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class IBaseHistogram {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() = 0;
virtual IAnnotation & annotation() = 0;

/// virtual const IAnnotation & annotation() const = 0;
virtual const IAnnotation & annotation() const = 0;

/**
* Get the Histogram's dimension.
Expand Down
4 changes: 2 additions & 2 deletions include/RAIDA/ICloud1DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ class ICloud1DROOT : public ICloud1D {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() ;
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const ;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down
4 changes: 2 additions & 2 deletions include/RAIDA/ICloud2DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ class ICloud2DROOT : public ICloud2D {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() ;
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const ;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down
4 changes: 2 additions & 2 deletions include/RAIDA/ICloud3DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ class ICloud3DROOT : public ICloud3D {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() ;
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const ;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down
9 changes: 9 additions & 0 deletions include/RAIDA/IHistogram1DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ friend class IHistogramFactoryROOT ;
virtual bool setTitle(const std::string & title) ;
virtual bool setName(const std::string & name) ;

/**
* Get the IAnnotation associated with the Histogram.
* @return The IAnnotation.
*
*/
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
* @return The Histogram's dimension.
Expand Down
2 changes: 1 addition & 1 deletion include/RAIDA/IHistogram2DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ friend class IHistogram1DROOT ;
*/
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const = 0;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down
4 changes: 2 additions & 2 deletions include/RAIDA/IHistogram3DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ class IHistogram3DROOT : public IHistogram3D {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() ;
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const ;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down
4 changes: 2 additions & 2 deletions include/RAIDA/IProfile1DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ class IProfile1DROOT : public IProfile1D {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() ;
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const ;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down
4 changes: 2 additions & 2 deletions include/RAIDA/IProfile2DROOT.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ class IProfile2DROOT : public IProfile2D {
* @return The IAnnotation.
*
*/
/// virtual IAnnotation & annotation() ;
virtual IAnnotation & annotation() { throw std::runtime_error("Not implemented"); }

/// virtual const IAnnotation & annotation() const ;
virtual const IAnnotation & annotation() const { throw std::runtime_error("Not implemented"); }

/**
* Get the Histogram's dimension.
Expand Down

0 comments on commit cd6d998

Please sign in to comment.