# _smach.h File Reference

`#include <vector>`
`#include <algorithm>`
`#include <stdexcept>`
`#include "_mutex_null.h"`
`#include "_misc.h"`

Go to the source code of this file.

## Classes

class | smach< CON, K, M >
| Templatized State Machine. More...
struct | smach< CON, K, M >::egress_exception
struct | smach< CON, K, M >::pop_exception
struct | smach< CON, K, M >::event
| Event base class. More...
class | smach< CON, K, M >::event_def_internal< T >
| Event definition class. More...
class | smach< CON, K, M >::state_base
class | smach< CON, K, M >::state< T >
| State class. More...

## Defines

#define | SMACH_STATE_STACK_SIZE (32)
#define | ETL_MUTEX_LOCK()

## Define Documentation

#define SMACH_STATE_STACK_SIZE (32)

======================================================================== Extended Template and Library State Machine Abstraction Class Implementation $Id$

Copyright (c) 2002 Robert B. Quattlebaum Jr. Copyright (c) 2008 Chris Moore

This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

=== N O T E S ===========================================================

=========================================================================

Definition at line 38 of file _smach.h.

Referenced by smach< CON, K, M >::push_state().

#define ETL_MUTEX_LOCK | ( |  | ) |

Definition at line 46 of file _smach.h.

Referenced by smach< CON, K, M >::egress(), smach< CON, K, M >::enter(), smach< CON, K, M >::get_state_name(), smach< CON, K, M >::pop_state(), smach< CON, K, M >::process_event(), smach< CON, K, M >::push_state(), smach< CON, K, M >::set_child(), and smach< CON, K, M >::set_default_state().