https://svn.lrde.epita.fr/svn/oln/trunk/static
Index: ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Rename stc/properties.hh as stc/vtypes.hh.
* stc/properties.hh: Rename as...
* stc/vtypes.hh: ...this.
(stc_equip_namespace_with_properties): Rename as...
(stc_equip_namespace_with_vtypes): ...this.
Adjust.
* stc/Makefile.am (nobase_stc_HEADERS): Rename properties.hh as
vtypes.hh.
* tests/properties.cc: Rename as...
* tests/vtypes.cc: ...this.
Adjust.
* tests/entry.cc: Adjust.
* tests/Makefile.am (check_PROGRAMS): Rename properties as vtypes.
(properties_SOURCES): Likewise.
Rename variable as...
(vtypes_SOURCES): ...this.
stc/Makefile.am | 2 +-
stc/vtypes.hh | 26 +++++++++++++-------------
tests/Makefile.am | 4 ++--
tests/entry.cc | 5 ++---
tests/vtypes.cc | 4 ++--
5 files changed, 20 insertions(+), 21 deletions(-)
Index: tests/entry.cc
--- tests/entry.cc (revision 473)
+++ tests/entry.cc (working copy)
@@ -113,9 +113,8 @@
namespace my_lib
{
- // Virtual types.
- // We don't use all the equipment of stc/properties.hh for
- // simplicity purpose.
+ // Virtual types. We don't use all the equipment of stc/vtypes.hh
+ // for the sake of simplicity.
template <typename T>
struct vtypes
{
Index: tests/Makefile.am
--- tests/Makefile.am (revision 473)
+++ tests/Makefile.am (working copy)
@@ -10,10 +10,10 @@
check_PROGRAMS = \
any \
entry \
- properties
+ vtypes
any_SOURCES = any.cc
-properties_SOURCES = properties.cc
entry_SOURCES = entry.cc
+vtypes_SOURCES = vtypes.cc
TESTS = $(check_PROGRAMS)
Index: tests/vtypes.cc
--- tests/vtypes.cc (revision 472)
+++ tests/vtypes.cc (working copy)
@@ -25,7 +25,7 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-#include <stc/properties.hh>
+#include <stc/vtypes.hh>
#include <mlc/cmp.hh>
#include <mlc/assert.hh>
#include <mlc/int.hh>
@@ -58,7 +58,7 @@
| Namespace equipment. |
`----------------------*/
- stc_equip_namespace_with_properties();
+ stc_equip_namespace_with_vtypes();
/*-----------.
Index: stc/vtypes.hh
--- stc/vtypes.hh (revision 472)
+++ stc/vtypes.hh (working copy)
@@ -25,13 +25,13 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-// \file stc/properties.hh
-// \brief Property mechanism.
-//
-// From Theo's presentation (olena-06-jan.pdf).
+/* \file stc/vtypes.hh
+ \brief Virtual types (also known as ``properties'') mechanism.
-#ifndef STATIC_PROPERTIES_HH
-# define STATIC_PROPERTIES_HH
+ Based on Theo's presentation from January 2006 (olena-06-jan.pdf). */
+
+#ifndef STATIC_VTYPES_HH
+# define STATIC_VTYPES_HH
# include <mlc/flags.hh>
# include <mlc/typedef.hh>
@@ -100,7 +100,7 @@
typename TypedefName::template from_< Type >::ret
// FIXME: Add support for hierarchies with several super classes.
-# define stc_equip_namespace_with_properties() \
+# define stc_equip_namespace_with_vtypes() \
\
/* ----------------------- */ \
/* Typedefs declarations. */ \
@@ -166,7 +166,7 @@
}; \
\
/** Optional packing structure, to be specialized by the user. */ \
- /** See tests/properties.hh for an example of use. */ \
+ /** See tests/vtypes.hh for an example of use. */ \
template <typename category, typename from_type> \
struct packed_vtypes \
{ \
@@ -474,25 +474,25 @@
// could get rid of local versions (stc_local_type_of and
// stc_local_type_of_).
-/// Get the property \a Typedef, declared in the current namespace,
+/// Get the vtype \a Typedef, declared in the current namespace,
/// from \a FromType (version to be used inside a template).
#define stc_local_type_of(Category, FromType, Typedef) \
typename stc_type_of_(Category, FromType, Typedef)
-/// Get the property \a Typedef, declared in the current namespace,
+/// Get the vtype \a Typedef, declared in the current namespace,
/// from \a FromType (version to be used outside a template).
#define stc_local_type_of_(Category, FromType, Typedef) \
type_of_<Category, FromType, typedef_:: Typedef##_type >::ret
-/// Get the property \a Typedef, declared in \a Namespace, from \a
+/// Get the vtype \a Typedef, declared in \a Namespace, from \a
/// FromType (version to be used inside a template).
#define stc_type_of(Namespace, Category, FromType, Typedef) \
typename stc_type_of_(Namespace, Category, FromType, Typedef)
-/// Get the property \a Typedef, declared in \a Namespace, from \a
+/// Get the vtype \a Typedef, declared in \a Namespace, from \a
/// FromType (version to be used outside a template).
#define stc_type_of_(Namespace, Category, FromType, Typedef) \
Namespace::type_of_<Category, FromType, \
Namespace::typedef_:: Typedef##_type >::ret
-#endif // ! STATIC_PROPERTIES_HH
+#endif // ! STATIC_VTYPES_HH
Index: stc/Makefile.am
--- stc/Makefile.am (revision 473)
+++ stc/Makefile.am (working copy)
@@ -4,4 +4,4 @@
nobase_stc_HEADERS = \
any.hh \
entry.hh \
- properties.hh
+ vtypes.hh