|
A library for working with phylogenetic and population genetic data.
v0.27.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_FORMATS_SVG_ATTRIBUTES_H_
2 #define GENESIS_UTILS_FORMATS_SVG_ATTRIBUTES_H_
103 void write( std::ostream& out )
const;
176 void write( std::ostream& out )
const;
223 void write( std::ostream& out )
const;
283 void write( std::ostream& out )
const;
333 void write( std::ostream& out )
const;
380 void write( std::ostream& out )
const;
426 void write( std::ostream& out )
const;
471 void write( std::ostream& out )
const;
507 template<
typename T >
515 : pimpl_( other.pimpl_->clone() )
535 pimpl_->write_( out );
546 virtual ~Concept() {}
552 virtual std::unique_ptr< Concept > clone()
const = 0;
555 template<
typename T >
556 struct Model : Concept
558 Model( T
const& value )
565 object_.write( out );
568 std::unique_ptr< Concept > clone()
const override
572 return genesis::utils::make_unique< Model<T> >( object_ );
578 std::unique_ptr< Concept > pimpl_;
599 void append( Transformation&& t );
600 void append( Transformation
const& t );
602 void write( std::ostream& out )
const;
620 #endif // include guard
void swap(Sample &lhs, Sample &rhs)
SvgFont & operator=(SvgFont const &)=default
SvgFill(Type type=Type::kColor)
void offset(Histogram &h, double value)
Provides some valuable additions to STD.
std::vector< double > dash_array
SvgFont(double size=10, std::string const &family="Verdana")
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
SvgStroke(Type type=Type::kColor)
void write(std::ostream &out) const
std::unique_ptr< T > make_unique(Args &&... args)
Returns a std::unique_ptr for a given type.
SvgFill & operator=(SvgFill const &)=default
void write(std::ostream &out) const
SvgStroke & operator=(SvgStroke const &)=default
void write(std::ostream &out) const