milena r1887: Add literals

URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2008-04-22 Caroline Vigouroux <vigour_c@epita.fr> Add literals. * literal/brown.hh, literal/cyan.hh, literal/darkgray.hh, literal/gray.hh, literal/lightgray.hh, literal/lime.hh, literal/magenta.hh, literal/olive.hh, literal/orange.hh, literal/pink.hh, literal/purple.hh, literal/teal.hh, literal/violet.hh, literal/yellow.hh: New literals. * literal: New folder. --- brown.hh | 33 +++++++++++++++++++++++++++++++++ cyan.hh | 33 +++++++++++++++++++++++++++++++++ darkgray.hh | 33 +++++++++++++++++++++++++++++++++ gray.hh | 33 +++++++++++++++++++++++++++++++++ lightgray.hh | 33 +++++++++++++++++++++++++++++++++ lime.hh | 33 +++++++++++++++++++++++++++++++++ magenta.hh | 33 +++++++++++++++++++++++++++++++++ olive.hh | 33 +++++++++++++++++++++++++++++++++ orange.hh | 33 +++++++++++++++++++++++++++++++++ pink.hh | 33 +++++++++++++++++++++++++++++++++ purple.hh | 33 +++++++++++++++++++++++++++++++++ teal.hh | 33 +++++++++++++++++++++++++++++++++ violet.hh | 33 +++++++++++++++++++++++++++++++++ yellow.hh | 33 +++++++++++++++++++++++++++++++++ 14 files changed, 462 insertions(+) Index: trunk/milena/sandbox/vigouroux/literal/pink.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/pink.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/pink.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_PINK_HH +# define MLN_LITERAL_PINK_HH + +/*! \file mln/literal/pink.hh + * \brief Definition of the literal of mln::pink. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal pink. + struct pink_t : public Literal<pink_t> + { + }; + + + /// Literal pink. + // FIXME: Make this a proper global (issue #43). + static const pink_t pink = pink_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_PINK_HH Index: trunk/milena/sandbox/vigouroux/literal/gray.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/gray.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/gray.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_GRAY_HH +# define MLN_LITERAL_GRAY_HH + +/*! \file mln/literal/gray.hh + * \brief Definition of the literal of mln::gray. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal gray. + struct gray_t : public Literal<gray_t> + { + }; + + + /// Literal gray. + // FIXME: Make this a proper global (issue #43). + static const gray_t gray = gray_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_GRAY_HH Index: trunk/milena/sandbox/vigouroux/literal/violet.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/violet.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/violet.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_VIOLET_HH +# define MLN_LITERAL_VIOLET_HH + +/*! \file mln/literal/violet.hh + * \brief Definition of the literal of mln::violet. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal violet. + struct violet_t : public Literal<violet_t> + { + }; + + + /// Literal violet. + // FIXME: Make this a proper global (issue #43). + static const violet_t violet = violet_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_VIOLET_HH Index: trunk/milena/sandbox/vigouroux/literal/darkgray.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/darkgray.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/darkgray.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_DARKGRAY_HH +# define MLN_LITERAL_DARKGRAY_HH + +/*! \file mln/literal/darkgray.hh + * \brief Definition of the literal of mln::darkgray. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal darkgray. + struct darkgray_t : public Literal<darkgray_t> + { + }; + + + /// Literal darkgray. + // FIXME: Make this a proper global (issue #43). + static const darkgray_t darkgray = darkgray_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_DARKGRAY_HH Index: trunk/milena/sandbox/vigouroux/literal/teal.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/teal.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/teal.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_TEAL_HH +# define MLN_LITERAL_TEAL_HH + +/*! \file mln/literal/teal.hh + * \brief Definition of the literal of mln::teal. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal teal. + struct teal_t : public Literal<teal_t> + { + }; + + + /// Literal teal. + // FIXME: Make this a proper global (issue #43). + static const teal_t teal = teal_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_TEAL_HH Index: trunk/milena/sandbox/vigouroux/literal/lime.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/lime.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/lime.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_LIME_HH +# define MLN_LITERAL_LIME_HH + +/*! \file mln/literal/lime.hh + * \brief Definition of the literal of mln::lime. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal lime. + struct lime_t : public Literal<lime_t> + { + }; + + + /// Literal lime. + // FIXME: Make this a proper global (issue #43). + static const lime_t lime = lime_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_LIME_HH Index: trunk/milena/sandbox/vigouroux/literal/purple.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/purple.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/purple.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_PURPLE_HH +# define MLN_LITERAL_PURPLE_HH + +/*! \file mln/literal/purple.hh + * \brief Definition of the literal of mln::purple. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal purple. + struct purple_t : public Literal<purple_t> + { + }; + + + /// Literal purple. + // FIXME: Make this a proper global (issue #43). + static const purple_t purple = purple_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_PURPLE_HH Index: trunk/milena/sandbox/vigouroux/literal/brown.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/brown.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/brown.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_BROWN_HH +# define MLN_LITERAL_BROWN_HH + +/*! \file mln/literal/brown.hh + * \brief Definition of the literal of mln::brown. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal brown. + struct brown_t : public Literal<brown_t> + { + }; + + + /// Literal brown. + // FIXME: Make this a proper global (issue #43). + static const brown_t brown = brown_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_BROWN_HH Index: trunk/milena/sandbox/vigouroux/literal/lightgray.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/lightgray.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/lightgray.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_LIGHTGRAY_HH +# define MLN_LITERAL_LIGHTGRAY_HH + +/*! \file mln/literal/lightgray.hh + * \brief Definition of the literal of mln::lightgray. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal lightgray. + struct lightgray_t : public Literal<lightgray_t> + { + }; + + + /// Literal lightgray. + // FIXME: Make this a proper global (issue #43). + static const lightgray_t lightgray = lightgray_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_LIGHTGRAY_HH Index: trunk/milena/sandbox/vigouroux/literal/cyan.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/cyan.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/cyan.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_CYAN_HH +# define MLN_LITERAL_CYAN_HH + +/*! \file mln/literal/cyan.hh + * \brief Definition of the literal of mln::cyan. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal cyan. + struct cyan_t : public Literal<cyan_t> + { + }; + + + /// Literal cyan. + // FIXME: Make this a proper global (issue #43). + static const cyan_t cyan = cyan_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_CYAN_HH Index: trunk/milena/sandbox/vigouroux/literal/yellow.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/yellow.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/yellow.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_YELLOW_HH +# define MLN_LITERAL_YELLOW_HH + +/*! \file mln/literal/yellow.hh + * \brief Definition of the literal of mln::yellow. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal yellow. + struct yellow_t : public Literal<yellow_t> + { + }; + + + /// Literal yellow. + // FIXME: Make this a proper global (issue #43). + static const yellow_t yellow = yellow_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_YELLOW_HH Index: trunk/milena/sandbox/vigouroux/literal/orange.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/orange.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/orange.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_ORANGE_HH +# define MLN_LITERAL_ORANGE_HH + +/*! \file mln/literal/orange.hh + * \brief Definition of the literal of mln::orange. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal orange. + struct orange_t : public Literal<orange_t> + { + }; + + + /// Literal orange. + // FIXME: Make this a proper global (issue #43). + static const orange_t orange = orange_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_ORANGE_HH Index: trunk/milena/sandbox/vigouroux/literal/magenta.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/magenta.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/magenta.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_MAGENTA_HH +# define MLN_LITERAL_MAGENTA_HH + +/*! \file mln/literal/magenta.hh + * \brief Definition of the literal of mln::magenta. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal magenta. + struct magenta_t : public Literal<magenta_t> + { + }; + + + /// Literal magenta. + // FIXME: Make this a proper global (issue #43). + static const magenta_t magenta = magenta_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_MAGENTA_HH Index: trunk/milena/sandbox/vigouroux/literal/olive.hh =================================================================== --- trunk/milena/sandbox/vigouroux/literal/olive.hh (revision 0) +++ trunk/milena/sandbox/vigouroux/literal/olive.hh (revision 1887) @@ -0,0 +1,33 @@ +#ifndef MLN_LITERAL_OLIVE_HH +# define MLN_LITERAL_OLIVE_HH + +/*! \file mln/literal/olive.hh + * \brief Definition of the literal of mln::olive. + * + */ + +# include <mln/core/concept/literal.hh> + +namespace mln +{ + + namespace literal + { + + /// Type of literal olive. + struct olive_t : public Literal<olive_t> + { + }; + + + /// Literal olive. + // FIXME: Make this a proper global (issue #43). + static const olive_t olive = olive_t(); + + + } // end of namespace mln::literal + +} // end of namespace mln + + +#endif // ! MLN_LITERAL_OLIVE_HH
participants (1)
-
Caroline Vigouroux